//
//  FDMKindHeaderDetailCollectionViewCell.m
//  Entertainment
//
//  Created by dllo on 16/4/23.
//  Copyright © 2016年 付冬梅. All rights reserved.
//

#import "FDMKindHeaderDetailCollectionViewCell.h"

@implementation FDMKindHeaderDetailCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.titleImage = [[UIImageView alloc] init];
        [self.contentView addSubview:self.titleImage];
        [self.titleImage release];
    }
    return self;
}

- (void)dealloc {
    [self.titleImage release];
    [super dealloc];
    
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    [super applyLayoutAttributes:layoutAttributes];
    self.titleImage.frame = self.contentView.frame;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
